package com.athuiju.fenxiaoback;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan("com.athuiju")
//public class FenxiaobackApplication {
//
//    public static void main(String[] args) {
//        SpringApplication.run(FenxiaobackApplication.class, args);
//    }
//
//}
public class FenxiaobackApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(FenxiaobackApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(FenxiaobackApplication.class, args);
    }

}
